package com.zzxy.spring12.controller;

import com.zzxy.spring12.service.IstudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Controller("stuController")
public class StudentController {
    @Autowired
    private IstudentService studentService;

//    public IstudentService getStudentService() {
//        return studentService;
//    }
//
//    public void setStudentService(IstudentService studentService) {
//        this.studentService = studentService;
//    }

    public void  register(){
        studentService.saveStudent();
}
}
